package com.wy.dzsw.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wy.dzsw.mapper.ShopMapper;
import com.wy.dzsw.pojo.Shop;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @描述
 * @创建人 wangyue
 * @创建时间2020/12/816:11
 */
@Service
public class ShopServiceImpl extends ServiceImpl<ShopMapper,Shop> implements ShopService{

    @Resource
    private ShopMapper shopMapper;

    /**
     * 定时任务的方法：1不能有参数；2、不能有返回值；
     */
    //@Scheduled(cron = "*/2 * * * * ?")
    public void dsrw(){
        System.out.println(System.currentTimeMillis());
    }

    @Override
    public List<Shop> getAll() {
        return shopMapper.getAll();
    }
}
